package com.yimaxiaoerlang.module_signalling.model;

public class YMRTMMessage {
//    var channelId: String = ""
//    var uid: String = ""
//    var tid: String = ""
//    var msgType: Int = 0
//    var errorMsg = ""
//    var data: String = ""

    private String channelId;
    private String uid;
    private String tid;
    private int msgType;
    private String errorMsg;
    private String data;

    public YMRTMMessage(String channelId, String uid, String tid, int msgType, String errorMsg, String data) {
        this.channelId = channelId;
        this.uid = uid;
        this.tid = tid;
        this.msgType = msgType;
        this.errorMsg = errorMsg;
        this.data = data;
    }

    public YMRTMMessage() {
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public int getMsgType() {
        return msgType;
    }

    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "SocketMessage{" +
                "channelId='" + channelId + '\'' +
                ", uid='" + uid + '\'' +
                ", tid='" + tid + '\'' +
                ", msgType=" + msgType +
                ", errorMsg='" + errorMsg + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
